<?php
/**
 * 店舗物件検索　共通クラス<br />
 *
 * @package apamanshop
 * @author
 * @copyright
 */
abstract class Shinkensaku_BaseController extends Apm_Controller_Base
{
	/** 店舗物件検索（沿線検索）ヘルパー */
    protected $_select_rail_helper = null;

	/** 店舗物件検索（駅検索）ヘルパー */
    protected $_sel_station_helper = null;

	/** 店舗物件検索（市区町村検索）ヘルパー */
    protected $_select_city_helper = null;
    
	/** 店舗物件検索（町名検索）ヘルパー */
    protected $_sel_choumei_helper = null;

	/** 店舗物件検索（条件選択）ヘルパー */
    protected $_sel_condition_helper = null;

    /** 加盟店ページ遷移時用ヘッダフッタヘルパー変数 */
    protected $_shoppage_header_helper = array();
    protected $_shoppage_footer_helper = array();

    /**
     * 初期処理
     */
    public function preDispatch()
    {
    	$shinkensaku_helper_path = APPLICATION_PATH . '/modules/shinkensaku/views/helpers/';
    	$shop_helper_path = APPLICATION_PATH . '/modules/shop/views/helpers/';

    	// ヘルパーの生成
        $this->_select_rail_helper = $this->getApmHelper('select-rail_helper.tpl');
        $this->_sel_station_helper = $this->getApmHelper('sel-station_helper.tpl');

        $this->_select_city_helper = $this->getApmHelper('select-city_helper.tpl');
        $this->_sel_choumei_helper = $this->getApmHelper('sel-choumei_helper.tpl');
        $this->_sel_condition_helper = $this->getApmHelper('sel-condition_helper.tpl');
        $this->_sel_error_helper = $this->getApmHelper('sel-error_helper.tpl');

		//加盟店ページ用ヘッダフッタ画面	/* 2011/07/22　AKBｷｬﾝﾍﾟｰﾝ：加盟店ﾒﾝﾊﾞｰｻｲﾄ追加対応 */
		$this->_shoppage_header_helper  = $this->getApmHelper($shop_helper_path . 'shoppage/pageheader_helper.tpl');
		$this->_shoppage_footer_helper  = $this->getApmHelper($shop_helper_path . 'shoppage/pagefooter_helper.tpl');

        // パラメータの取得
        $this->_params = $this->getParameters();
        // リクエストデータ設定
        $this->_data['request'] = $this->getParameters();
        // hiddenタグ生成
        $this->_data['hiddenTag'] = Apm_Util::generateHiddenTag($this->_params);
    }

}
?>
